package com.fz.us.oa.core.service.com.impl;

import com.fz.us.admin.company.dao.BaseFlowDao;
import com.fz.us.admin.company.entity.User;
import com.fz.us.admin.company.service.impl.BaseFlowServiceImpl;
import com.fz.us.oa.core.dao.com.ModulePowerDao;
import com.fz.us.oa.core.entity.com.ModulePower;
import com.fz.us.oa.core.service.com.ModulePowerService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by dzw on 2017/12/12.
 */
@Service
public class ModulePowerServiceImpl extends BaseFlowServiceImpl<ModulePower,String> implements ModulePowerService {

    @Resource
    private ModulePowerDao modulePowerDao;

    @Override
    public BaseFlowDao<ModulePower, String> getBaseFlowDao() {
        return modulePowerDao;
    }

    @Override
    public List<User> getManagers() {
        return modulePowerDao.getManagers();
    }

    @Override
    public ModulePower getModulePowerByUser(User user) {
        return modulePowerDao.getModulePowerByUser(user);
    }

    @Override
    public ModulePower getModulePowerPassByUser(User user) {
        return modulePowerDao.getModulePowerPassByUser(user);
    }

    @Override
    public List<ModulePower> getReModulePowerByUser(User user) {
        return modulePowerDao.getReModulePowerByUser(user);
    }
}
